package Algorithms.DynamicPrograming_03;

/*
 * @Author 罗
 * @date 2020/3/29 - 2:47 下午
 *
 */
/**
 * 放入背包的物品
 * */
public class Item {
    private int weight;
    private int value;
    private String name;
    private int id;

    public Item(int id, String name, int weight, int value) {
        this.weight = weight;
        this.value = value;
        this.name = name;
        this.id = id;
    }

    public int getWeight() {
        return weight;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public int getId() {
        return id;
    }

    public Item() {
    }

    @Override
    public String toString() {
        return "Item{" +
                "weight=" + weight +
                ", value=" + value +
                ", name='" + name + '\'' +
                ", id=" + id +
                '}';
    }
}
